<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<script type="text/javascript" src="layui/layui.js"></script>
		<script type="text/javascript" src="layui/css/layui.css"></script>
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/public.js"></script>
		<script type="text/javascript" src="js/paging.js"></script>
		<link rel="stylesheet" href="css/public.css" media="all">
		<title>设备申请</title>
	</head>
	<body onload="pageStart(10)">
		<!--申请start-->
		<div style="display: none;" id="addDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content">
				<div class="popup-top">
					<label class="popup-add-title">申请设备</label>
					<img onclick="addClose();" src="img/close_icon.png"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门:</label>
					<select class="popup-select" id="departmentSave" onchange="getUserByDept()">
					</select>
					<label class="popup-txt">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
					<select id="username" class="popup-select" onchange="userNameChange(1);">
						
					</select>
				</div>
				<div class="popup-item">
					<label class="popup-txt">联系方式:</label>
					<input id="phone" type="tel" class="popup-input" placeholder="请输入联系电话"/>
					<label class="popup-txt">借出物品:</label>
					<input id="borrow" type="text" class="popup-input" placeholder="请输入姓名"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">借出时间:</label>
					<input id="borrowTime" type="date" class="popup-input" placeholder="请输入借出时间"/>
					<label class="popup-txt">归还时间:</label>
					<input id="returnTime" type="date" class="popup-input" placeholder="请输入归还时间"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态:</label>
					<select class="popup-select" id="status">
						<option value="1">已还</option>
						<option value="0">未还</option>
					</select>
				</div>
				<div class="popup-item">
					<label class="popup-txt">申请原因:</label>
					<textarea class="popup-textarea" id="reason" style="height: 6.25rem;"></textarea>
				</div>
				<div class="popup-item" style="text-align: center;">
					<center>
					<button class="saveBtn" onclick="equipAddSave();">保存</button>
					<button class="cancelBtn" onclick="addClose();" >取消</button>
					</center>
				</div>
			</div>
		</div>
		<!--申请end-->
		<!--申请编辑start-->
		<div style="display: none;" id="editDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content">
				<div class="popup-top">
					<label class="popup-add-title">申请设备</label>
					<img onclick="editClose();" src="img/close_icon.png"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门:</label>
					<select class="popup-select" id="departmentEdit" onchange="getUserByDept()">
					</select>
					<label class="popup-txt">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
					<select id="usernameEdit" class="popup-select" onchange="userNameChange(2);">
						
					</select>
				</div>
				<div class="popup-item">
					<label class="popup-txt">联系方式:</label>
					<input id="phoneEdit" type="tel" class="popup-input" placeholder="请输入联系电话"/>
					<label class="popup-txt">借出物品:</label>
					<input id="borrowEdit" type="text" class="popup-input" placeholder="请输入姓名"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">借出时间:</label>
					<input id="borrowTimeEdit" type="date" class="popup-input" placeholder="请输入借出时间"/>
					<label class="popup-txt">归还时间:</label>
					<input id="returnTimeEdit" type="date" class="popup-input" placeholder="请输入归还时间"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态:</label>
					<select class="popup-select" id="statusEdit">
						<option value="1">已还</option>
						<option value="0">未还</option>
					</select>
				</div>
				<div class="popup-item">
					<label class="popup-txt">申请原因:</label>
					<textarea class="popup-textarea" id="reasonEdit" style="height: 6.25rem;"></textarea>
				</div>
				<input value="" hidden="hidden" id="deviceapplys_id" />
				<div class="popup-item" style="text-align: center;">
					<center>
					<button class="saveBtn" onclick="equipEditSave();">保存</button>
					<button class="cancelBtn" onclick="editClose();" >取消</button>
					</center>
				</div>
			</div>
		</div>
		<!--申请编辑end-->
		<div class="page-div">
			<label class="my-txt">项目部</label>
			<select id="search_project" class="my-select">
				<option value="-1">全部</option>
			</select>
			<label class="my-txt">部门</label>
			<select id="search_department" class="my-select">
			</select>
			<label class="my-txt">起</label>
			<input id="search_date_start" type="date" class="my-date"/>
			<label class="my-txt">止 
			</label>
			<input id="search_date_end" type="date" class="my-date"/>
			<input id="search_keyword" type="text" class="my-input" placeholder="搜索关键字"/>
			<button id="searchBtn" class="my-search-btn" onclick="search(10);">搜索</button>
			<button id="addBtn" class="my-import-btn" onclick="add();">申请</button>
		</div>
		<div class="data-div">
			<div id="data" class="data-div-table">
			<table>
				<tr class="table-top">
					<td width="10%">部门</td>
					<td width="8%">姓名</td>
					<td width="15%">联系方式</td>
					<td width="10%">借出物品</td>
					<td width="15%">借出时间</td>
					<td width="15%">归还时间</td>
					<td width="15%">申请原因</td>
					<td width="6%">状态</td>
					<td width="6%">操作</td>
				</tr>
				<tr class="item-white">
					<td colspan="9"><div>暂无数据</div></td>
				</tr>
			</table>
			</div>
			<center><div id="page" class="page_div"></div></center>
		</div>
		<input id="pageNo" value="1" style="display: none;"/>
		<input id="total_page" value="1"  style="display: none;"/>
		<input id="total_rows" value="1"  style="display: none;"/>
		<input id="keyword" value="查询"  style="display: none;"/>
	</body>
</html>
